import {defineStore} from "pinia";
import {onMounted, ref} from "vue";
import {getProcess} from "@/apis/slot.js";

export const getProcessStore = defineStore("process",()=>{
    const processList = ref({})
    const process = async () =>{
        const result = await getProcess()
        processList.value = result.data
    }
    onMounted(() => process())
    return {process,processList}
})